package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.OaAccountsReceivableSummaryMapper;
import com.ruoyi.system.domain.OaAccountsReceivableSummary;
import com.ruoyi.system.service.IOaAccountsReceivableSummaryService;

/**
 * OA系统应收账款汇总Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-03-14
 */
@Service
public class OaAccountsReceivableSummaryServiceImpl implements IOaAccountsReceivableSummaryService 
{
    @Autowired
    private OaAccountsReceivableSummaryMapper oaAccountsReceivableSummaryMapper;

    /**
     * 查询OA系统应收账款汇总
     * 
     * @param id OA系统应收账款汇总主键
     * @return OA系统应收账款汇总
     */
    @Override
    public OaAccountsReceivableSummary selectOaAccountsReceivableSummaryById(Long id)
    {
        return oaAccountsReceivableSummaryMapper.selectOaAccountsReceivableSummaryById(id);
    }

    /**
     * 查询OA系统应收账款汇总列表
     * 
     * @param oaAccountsReceivableSummary OA系统应收账款汇总
     * @return OA系统应收账款汇总
     */
    @Override
    public List<OaAccountsReceivableSummary> selectOaAccountsReceivableSummaryList(OaAccountsReceivableSummary oaAccountsReceivableSummary)
    {
        return oaAccountsReceivableSummaryMapper.selectOaAccountsReceivableSummaryList(oaAccountsReceivableSummary);
    }

    /**
     * 新增OA系统应收账款汇总
     * 
     * @param oaAccountsReceivableSummary OA系统应收账款汇总
     * @return 结果
     */
    @Override
    public int insertOaAccountsReceivableSummary(OaAccountsReceivableSummary oaAccountsReceivableSummary)
    {
        return oaAccountsReceivableSummaryMapper.insertOaAccountsReceivableSummary(oaAccountsReceivableSummary);
    }

    /**
     * 修改OA系统应收账款汇总
     * 
     * @param oaAccountsReceivableSummary OA系统应收账款汇总
     * @return 结果
     */
    @Override
    public int updateOaAccountsReceivableSummary(OaAccountsReceivableSummary oaAccountsReceivableSummary)
    {
        return oaAccountsReceivableSummaryMapper.updateOaAccountsReceivableSummary(oaAccountsReceivableSummary);
    }

    /**
     * 批量删除OA系统应收账款汇总
     * 
     * @param ids 需要删除的OA系统应收账款汇总主键
     * @return 结果
     */
    @Override
    public int deleteOaAccountsReceivableSummaryByIds(Long[] ids)
    {
        return oaAccountsReceivableSummaryMapper.deleteOaAccountsReceivableSummaryByIds(ids);
    }

    /**
     * 删除OA系统应收账款汇总信息
     * 
     * @param id OA系统应收账款汇总主键
     * @return 结果
     */
    @Override
    public int deleteOaAccountsReceivableSummaryById(Long id)
    {
        return oaAccountsReceivableSummaryMapper.deleteOaAccountsReceivableSummaryById(id);
    }
}
